package com.lancoo.znbkxx.teacher.aibkTestCoach.paperToPreview.aibkPreviewZHT

import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.entity.SingleQuestionDetail
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseFragment
import com.lancoo.znbkxx.teacher.R
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.entity.PaperPreviewInfor
import kotlinx.android.synthetic.main.aibk_adapter_parent_jdt.view.*

class PreviewFragmentParentJdt(
        val activity: AppCompatActivity,
        val paperPreviewInfor: PaperPreviewInfor,
        val index_A:Int,
        val index_B:Int,
        val index_C:Int
) : KBaseFragment() {

    var rootView: View? = null
    override fun createLayout(): Int {
        return R.layout.aibk_adapter_parent_jdt
    }

    override fun initView(view: View?) {
        rootView = view

        var manager = LinearLayoutManager(activity)
        manager.orientation = LinearLayoutManager.VERTICAL
        rootView!!.RvShotAnswer.layoutManager = manager
        val mAdapter = PreviewAdapterChildJdt(activity, paperPreviewInfor, index_A, index_B, index_C)
        rootView!!.RvShotAnswer.adapter = mAdapter
    }
}